using System.Text.Json;
using System.Text.Json.Serialization;

public class ProtoBase
{
    public string? name { get; set; }
}
public class PlayProto : ProtoBase
{
    public int x { get; set; }
    public int y { get; set; }
    public int color { get; set; }
}
public class ReadyProto : ProtoBase
{

}
public class ColorProto : ProtoBase
{
    public int color { get; set; }
}
public class MessageProto : ProtoBase
{
    public string? message { get; set; }
}
public class WinProto : ProtoBase
{
    public int color { get; set; }
}